package com.ppc.controller.admin;

import com.ppc.result.Result;
import com.ppc.service.SystemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dy
 * @date 2023/12/20
 */
@Slf4j
@RestController
public class SystemController {


  @Autowired
  private SystemService systemService;

  /**
   * 初始化系统
   *
   * @return {@link Result }
   * @description
   */
  @GetMapping("/admin/init")
  public Result initSystem() {
    systemService.initialSystem();
    return Result.success();
  }
}
